package com.zlp.design.demo.v2.before;

/**
 * 正方形
 * @date: 2022/3/4 13:49
 */
public class Square extends Rectangle {
    
    public void setWidth(double width) {
        super.setLength(width);
        super.setWidth(width);
    }

    public void setLength(double length) {
        super.setLength(length);
        super.setWidth(length);
    }
}